package com.hlbspringcloud.signature.dto;

import com.hlbspringcloud.signature.annotation.Insert;
import com.hlbspringcloud.signature.annotation.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author huanglibin
 * @Project signature
 * @Description
 * @Date 2021-01-04-10-20-43
 * @Version 1.0
 */
@Data
public class GroupCardDto {
    @NotBlank(groups = {Update.class})
    private String id;

    @NotBlank(groups = {Insert.class})
    private String cardNum;

    @NotNull(groups = {Insert.class,Update.class})
    private Integer cardType;
}
